import 'package:boss/ui/widget/custom_list_title.dart';
import 'package:boss/ui/widget/radioList/radio.dart' as radio;
import 'package:flutter/material.dart';

class RadioItem extends StatelessWidget {
  final String title;
  final bool isSelected;
  final VoidCallback onTap;

  const RadioItem({
    Key key,
    this.title,
    this.isSelected,
    this.onTap,
  }) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return CustomListTitle(
      title: title,
      onTap: onTap,
      trailing: radio.Radio(
        isSelected: isSelected,
      ),
    );
  }
}
